import { ref, type Ref } from 'vue'
// export const APP_ID = '5b4df699'
// export const API_KEY = 'fcf8f560beb6b81586700a8de539f67f'
// export const API_SECRET = 'NjIyNDlmM2IzNzI5ZWM1MzdjNTQ4M2Qx'

// 不同语言对应的设置
export const languages: Record<
  string,
  {
    label: string
    accent: string
    rlang: string
    vcn: string
    welcomeText: string[]
    pressText: string
    speed: number
    volume: number
  }
> = {
  cn: {
    label: '普通话',
    accent: 'mandarin',
    rlang: 'zh-cn',
    vcn: 'xiaoyan',
    welcomeText: ['你可以向我咨询任何问题，我会尽力为你解答', '欢迎使用'],
    pressText: '按住说话',
    speed: 80,
    volume: 100
  },
  cantonese: {
    label: '廣東話',
    accent: 'cn_cantonese',
    rlang: 'zh-hk',
    vcn: 'x_xiaomei',
    welcomeText: ['你可以向我咨詢任何問題，我會盡力為你解答', '歡迎使用'],
    pressText: '按住說話',
    speed: 65,
    volume: 100
  }
}

// 语言类型申明
export type LanguageType = 'cn' | 'cantonese'

// 当前语言
export const currentLanguage: Ref<LanguageType> = ref('cantonese')
